import useLoginStroe from "@/stores/login/login"
function usePermissions(permissionId: string) {
  // 0获取是否有对对应的增删改查的权限
  const loginStore = useLoginStroe()
  const { permissions } = loginStore

  return Boolean(permissions.find((item) => item.includes(permissionId)))
}
export default usePermissions
